package com.jsh.erp.feign.system;


import com.jsh.erp.datasource.entities.User;
import com.jsh.erp.utils.BaseResponseInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;



@FeignClient(name = "jsh-system", path = "/jshERP-boot/user",contextId ="LoginRemoteClient" )
public interface LoginRemoteClient {
    @PostMapping(value = "/login")
    BaseResponseInfo login(@RequestBody User userParam);

    @GetMapping(value = "/logout")
    BaseResponseInfo logout();
}
